/////////////////////////////////////////////////////////////////////////////
// Copyright(c) 2012-2015 purang All Rights Reserved
// Name:        sleep.h
// Purpose:
// Author:      syy
// Modified by:
// Created:     2014/1/3 15:47
// RCS-ID:
// Licence:
/////////////////////////////////////////////////////////////////////////////
// An OS-independent sleep function.

#ifndef PR_SYSTEM_WRAPPERS_INTERFACE_SLEEP_H_
#define PR_SYSTEM_WRAPPERS_INTERFACE_SLEEP_H_

#include "../core.h"

namespace qb {

// This function sleeps for the specified number of milliseconds.
// It may return early if the thread is woken by some other event,
// such as the delivery of a signal on Unix.
S_CORE_EXPORT void SleepMs(int msecs);

}  // namespace qb

#endif  // PR_SYSTEM_WRAPPERS_INTERFACE_SLEEP_H_
